<?php if ($this->pageCount): ?>
    <div >
        <ul class="pagination">
            <!-- Previous page link -->
            <li>
                <?php if (isset($this->previous)): ?>
                    <a href="<?php echo $this->url(array('page' => $this->previous)); ?>">
                        &lt; Anterior
                    </a>
                <?php else: ?>
                    <span>&lt; Anterior</span>
                <?php endif; ?>
            </li>
            <!-- Numbered page links -->
            <?php foreach ($this->pagesInRange as $page): ?>

                    <?php if ($page != $this->current): ?>
                        <li><a href="<?php echo $this->url(array('page' => $page)); ?>">
                            <?php echo $page; ?>
                        </a></li>
                    <?php else: ?>
                        <li class="active" ><span ><?= $page; ?></span></li>
                    <?php endif; ?>
            <?php endforeach; ?>
            <!-- Next page link -->
            <li>
                <?php if (isset($this->next)): ?>
                   <a href="<?php echo $this->url(array('page' => $this->next)); ?>">
                        Proximo &gt;
                    </a>
                <?php else: ?>
                    <span>Proximo &gt;</span>
                <?php endif; ?>
            </li>
        </ul>
    </div>
<?php endif; ?>
